#ifndef _CONNECTION_H_
#define _CONNECTION_H_

#include <wx/db.h>

class DbConnection
{
private:

	static DbConnection * instance;
	wxDb * connection;

	DbConnection(const wxString & connectionString);


public:

	static DbConnection * getInstance();
	int getLastInsertID(const wxString & tableName);
	static void handleError(const wxString & message, wxDb * db = 0);
	wxDb * getPointer() const;
};

#endif